# Tanım: JVM için LISP
# URL: http://clojure.org/
# Paketçi: Cihan_Alkan
# Gerekler: openjdk classpath maven
# Grup: geliştirme

isim=clojure
surum=1.9.0
_surum=381
devir=1
kaynak=(https://download.clojure.org/install/clojure-tools-$surum.$_surum.tar.gz
        clojure.sh)


derle() {
  sed -i -e 's,PREFIX,/usr/share/clojure,g' clojure-tools/clojure
  cd clojure-tools
  install -Dm644 deps.edn "$PKG/usr/share/clojure/deps.edn"
  install -Dm644 example-deps.edn "$PKG/usr/share/clojure/example-deps.edn"
  install -Dm644 clojure-tools-$surum.$_surum.jar \
  "$PKG/usr/share/clojure/libexec/clojure-tools-$surum.$_surum.jar"
  install -Dm755 clojure "$PKG/usr/bin/clojure"
  install -Dm755 clj "$PKG/usr/bin/clj"
  install -Dm755 clojure.1 "$PKG/usr/bin/clojure.1"
  install -Dm755 clj.1 "$PKG/usr/bin/clj.1"
  install -Dm755 "$SRC/clojure.sh" "$PKG/etc/profile.d/clojure.sh"
}